package org.genntii.warehousesystem.domain.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("goods_order")
public class GoodsOrder {
    @TableId
    private int id;
    @TableField("order_code")
    private String orderCode;
    @TableField("goods_id")
    private int goodsId;
    private int num;
    @TableField("warehouse_id")
    private int warehouseId;
    @TableField("user_id")
    private int userId;
    private BigDecimal price;
    private int status;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("price_per")
    private BigDecimal pricePer;
    private int addressId;
}
